StupidBeauty
Read times:759Posted at:Fri Nov 16 00:40:54 2012
- no title specified

转载:[PyKDE] How to connect QSystemTrayIcon activated() signal?

P yQt4里,连接信号/信号槽 ,注意要把信号和信号槽写成C++风格的。

http://www.riverbankcomputing.com/pipermail/pyqt/2006-November/014652.html

亮点:

>

> self.connect(self.tray,

> QtCore.SIGNAL("activated(QtGui.QSystemTrayIcon.Trigger)"),

> self.on_trayclicked)

>

> # this doesn't work

>

> [...]

>

> What should i do to make it work as expected?

Signal arguments must be C++ signatures not Python ones, so

use "activated(QSystemTrayIcon::ActivationReason").

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4